package com.assets.room.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.io.Serializable;

/**
 * <p>
 * 调拨明细表
 * </p>
 *
 * @author xyk
 * @since 2021-05-20
 */
@Entity(tableName = "t_asset_allot_allotdetail")
public class Allotdetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 调拨明细id
     */
    @ColumnInfo(name = "allot_detail_id")
    @PrimaryKey(autoGenerate = true)
    private Long allotDetailId;

    /**
     * 调拨单号
     */
    @ColumnInfo(name = "allot_id")
    private String allotId;

    /**
     * 资产id
     */
    @ColumnInfo(name = "asset_id")
    private String assetId;

    /**
     * 是否同意（1：同意，2：不同意）
     */
    @ColumnInfo(name = "isaudit")
    private String isaudit;

    /**
     * 理由
     */
    @ColumnInfo(name = "text")
    private String text;

    /**
     * 调出部门
     */
    @ColumnInfo(name = "dept")
    private String dept;

    /**
     * 调出人
     */
    @ColumnInfo(name = "user")
    private String user;

    /**
     * 机构
     */
    @ColumnInfo(name = "company")
    private String company;

    /**
     * 股室类型
     */
    @ColumnInfo(name = "division")
    private String division;

    @ColumnInfo(name = "is_flag")
    private String isFlag;

    public Allotdetail() {
    }

    @Ignore
    public Allotdetail(Long allotDetailId, String allotId, String assetId, String isaudit, String text, String dept, String user, String company, String division, String isFlag) {
        this.allotDetailId = allotDetailId;
        this.allotId = allotId;
        this.assetId = assetId;
        this.isaudit = isaudit;
        this.text = text;
        this.dept = dept;
        this.user = user;
        this.company = company;
        this.division = division;
        this.isFlag = isFlag;
    }

    public Long getAllotDetailId() {
        return allotDetailId;
    }

    public void setAllotDetailId(Long allotDetailId) {
        this.allotDetailId = allotDetailId;
    }

    public String getAllotId() {
        return allotId;
    }

    public void setAllotId(String allotId) {
        this.allotId = allotId;
    }

    public String getAssetId() {
        return assetId;
    }

    public void setAssetId(String assetId) {
        this.assetId = assetId;
    }

    public String getIsaudit() {
        return isaudit;
    }

    public void setIsaudit(String isaudit) {
        this.isaudit = isaudit;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getDivision() {
        return division;
    }

    public void setDivision(String division) {
        this.division = division;
    }

    public String getIsFlag() {
        return isFlag;
    }

    public void setIsFlag(String isFlag) {
        this.isFlag = isFlag;
    }
}